﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

namespace mbine.msgc.tool
{
    public static class CXml
    {
        public static Dictionary<string, string> Parser(string _s)
        {
            Dictionary<string,string> rvalue = new Dictionary<string,string>();
            XmlDocument xdoc = new XmlDocument();
            xdoc.LoadXml(_s);

            foreach (XmlNode node in xdoc.ChildNodes[0].ChildNodes)
            {
                rvalue[node.Name] = node.InnerText;
            }
            return rvalue;
        }
    }
}
